//
//  AppTools.h
//  AFN封装
//
//  Created by dllo on 15/12/17.
//  Copyright © 2015年 刘倩男. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^AppToolsBlock)(id result);
typedef void(^ErrorBlock)(NSError *error);
@interface AppTools : NSObject
// get请求封装
+ (void)getDataWithAFNUrl:(NSString *)url block:(AppToolsBlock)block errorBlock:(ErrorBlock)errorBlock;

// post请求封装
+ (void)getDataWithAFNPostUrl:(NSString *)url body :(id) body block:(AppToolsBlock)block errorBlock:(ErrorBlock)errorBlock;

@end
